<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>${sysName}-登录</title>
    <link rel="stylesheet" type="text/css" href="${resRoot}/login/css/style.css?v=201812221">
</head>
<body>
<div class="container bg2">
    <div class="login-content">
        <form action="${base}/tologin" method="post"  >
        <div class="login-title">${sysName}<!-- 系统管理后台 --></div>
        <div class="input-border longin-number"><input type="text" name="loginName" autocomplete="off" placeholder="账号" value="${loginName!}" autofocus="autofocus"></div>
        <div class="input-border longin-code"><input type="password" name="password" placeholder="密码" value="${password!}" ></div>
        <div class="remember-code"><input id="rememberCode" name="rememberCode" type="checkbox" <#if rememberCode?? && rememberCode=="1">checked="checked"</#if> value="1" ><label for="rememberCode">记住密码</label></div>
        <div class="login-button"><button class="large-button" type="submit" >登录</button></div>
        </form>
    </div>
</div>
<script type="text/javascript" src="${resRoot}/layui/layui.js"></script>
	<script type="text/javascript" src="${resRoot}/js/jquery.min.js"></script>
	<script type="text/javascript" src="${resRoot}/js/main.js"></script>
	<#if n??>
	<script type="text/javascript">
	window.onload=function(){ 
		if('${n}'=='2') {
				layer.msg('帐号密码不能为空！');
			} else if('${n}'=='4') {
				layer.msg('登录错误！');
				} else {
					layer.msg('帐号密码错误！');
					}
			}
	</script>
	</#if>
</body>
</html>
